package com.woniu.client;


import com.woniu.client.dto.AccountDto;
import com.woniu.model.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;


@FeignClient(name = "permissions-server",path = "/permissions")//这里填目标服务名
public interface PermissionsClient {

    @ApiOperation("根据账号id查询账号")
    @GetMapping("/account/findAccountByAccountId/{accountId}")
    public Result<AccountDto> findAccountByAccountId(@PathVariable("accountId") String accountId);


}
